# -*- coding:utf-8 -*-

import time
import re
import os
# import urllib3
# import requests
# import urllib
import uiautomator2 as u2

localtime = time.asctime(time.localtime(time.time()))
print "=============================="
print "当前运行时间为：", localtime
print "=============================="

def checkCellOnline():
    """
    检查当前在线的设备
    :return:
    """
    devices = re.findall("(\S+)\s*device\n", os.popen('adb devices').read())
    return devices

# request_start
# u2
# urllib3

print checkCellOnline()
